package com.bcht.mui.orm.entity;


import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by taoshide on 2016/6/22.
 */

@Entity(name = "BCHT_T_YHXXB")
@Data
public class Yhxxb {
    @Id
    private  String yhbh;
    @ManyToOne(cascade = { CascadeType.ALL })
    @JoinColumn(name = "JSID")
    private Role jsid;
    private String yhmc,yhmm;
    private int xb,zt;
    private Date cjsj;
    public Yhxxb() {}

    public Yhxxb(String yhbh, String yhmc, String yhmm) {
        this.yhbh = yhbh;
        this.yhmc = yhmc;
        this.yhmm = yhmm;
    }


    @Override
    public String toString() {
        return "Yhxxb{" +
                "yhbh='" + yhbh + '\'' +
                ", jsid='" + jsid + '\'' +
                ", yhmc='" + yhmc + '\'' +
                ", yhmm='" + yhmm + '\'' +
                ", xb=" + xb +
                ", zt=" + zt +
                ", cjsj=" + cjsj +
                '}';
    }
}

